<html>
<head><meta charset="utf-8"><title>profile whole crate graph · t-compiler/wg-self-profile · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/index.html">t-compiler/wg-self-profile</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profile.20whole.20crate.20graph.html">profile whole crate graph</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="167037885"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/profile%20whole%20crate%20graph/near/167037885" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profile.20whole.20crate.20graph.html#167037885">(May 31 2019 at 21:57)</a>:</h4>
<p>Hey <span class="user-mention" data-user-id="125250">@Wesley Wiser</span> -- quick question. Suppose I run something like</p>
<div class="codehilite"><pre><span></span>RUSTFLAGS=-Zself-profile cargo build
</pre></div>


<p>this will generate a lot of files with (I think) PID in them in the directory. Is there a way to easily sort out which comes from which crate?</p>



<a name="167039752"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/profile%20whole%20crate%20graph/near/167039752" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profile.20whole.20crate.20graph.html#167039752">(May 31 2019 at 22:25)</a>:</h4>
<p>So, on a recent-ish build of rustc, you should end up with files like <code>{crate_name}-{pid}.{events,string_data,string_index}</code></p>



<a name="167069125"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/profile%20whole%20crate%20graph/near/167069125" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/profile.20whole.20crate.20graph.html#167069125">(Jun 01 2019 at 11:46)</a>:</h4>
<p>ah, cool</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>